// -----------------------------------------------------------------------------
// WEB B
// r1o group
// -----------------------------------------------------------------------------
$.fn.getMydata = function(_lotto_id,_gametype){
 $().disAreaObj();
 $.getJSON('op.php?op=xml_3d&fp=rate_3d&playtype=r1o&lotto_id_3d='+_lotto_id+"&gametype="+_gametype+"&disk="+ $("select#slcDisk").val() ,function(ratedata){
      var dataLen = 0;
      var urlPre = "";
      var hrefStr = "";
      var palygroup = "r1o";
      
      if(ratedata.errormsg != undefined){
        $("div#errormsg").addClass("error").text("No Rate data");
      }else{
        var disk = $("select#slcDisk").val(); 
        // "48","49","50","51","52","53","54"
        // two face     
        $().showTabelDataTwoFace(ratedata.r48,"tblNowBet01",disk,_gametype,palygroup,48);
        $().showTabelDataTwoFace(ratedata.r49,"tblNowBet01",disk,_gametype,palygroup,49);
        $().showTabelDataTwoFace(ratedata.r50,"tblNowBet01",disk,_gametype,palygroup,50);
        $().showTabelDataTwoFace(ratedata.r51,"tblNowBet01",disk,_gametype,palygroup,51);
        $().showTabelDataTwoFace(ratedata.r52,"tblNowBet01",disk,_gametype,palygroup,52);
        $().showTabelDataTwoFace(ratedata.r53,"tblNowBet01",disk,_gametype,palygroup,53);
        $().showTabelDataTwoFace(ratedata.r54,"tblNowBet01",disk,_gametype,palygroup,54);
   }
   
   $().redisAreaObj();
   $("div#mainPageData").show();
   $("div#errormsg").text("");
   // change text or checkbox type
    var timebtnType = $("input:hidden#timebtnType").val();
    if(timebtnType == "checkbox"){
      $().timebtnTypeToCheckbox(); 
    }
    
    // check rate each 30 sec
    //renewRateTimeObj = setTimeout(function(){$().renewR1data(_lotto_id,_gametype);}, renewRateTime);  
    
  });
};